package com.xh.jf_blog.bean;

import com.xh.jf_blog.common.annotation.CreatTime;
import com.xh.jf_blog.common.annotation.CreatUser;
import com.xh.jf_blog.common.annotation.UpdateTime;
import com.xh.jf_blog.common.annotation.UpdateUser;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Article {
    private Integer articleId;
    private String title;
    private String profile;
    private Integer userinfoId;
    private String content;
    private Integer categoryId;
    private Integer anthologyId;
    private Integer articleStatus;
    private String cover;
    private Integer commentStatus;
    private Integer readCount;
    private Date applyTime;
    private Integer status;
    @CreatTime
    private Date createTime;
    @CreatUser
    private Integer createUser;
    @UpdateTime
    private Date updateTime;
    @UpdateUser
    private Integer updateUser;

    private Integer[] tagIds;
    private List<ArticleTag> articleTagList;
    private String[] newTags;
    /*评论列表*/
    private List<Comment> commentList;
    /*点赞列表*/
    private List<ArticleLike> likeList;
    /*收藏列表*/
    private List<ArticleLike> collectionList;
    private Userinfo author;
    private Category category;

}
